package com.guigu.youxuan.mapper;

import com.guigu.youxuan.common.utils.GoodsInfoVo;
import com.guigu.youxuan.pojo.GoodsInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.youxuan.pojo.dto.GoodsDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface GoodsInfoMapper extends BaseMapper<GoodsInfo> {

    List<GoodsInfo> goodsList();

    /**
     * 供应商带条件分页查询
     * @param vo
     * @return
     */
    List<GoodsInfo> list(GoodsInfoVo vo);

    /*String selgoods(String keyword);*/

    List<GoodsDto> getGoodsDto(@Param("goodsInfo") GoodsInfo goodsInfo);

    GoodsInfo getMaxId();

    List<GoodsDto> selGoods(String keyword);

    List<GoodsDto> selFruits();

    List<GoodsDto> selDrinks();
}
